package com.etc.entity;

import java.util.HashMap;
import java.util.Map;

public class Cartitem {
    private Integer cartitemid;

    //商品ID
    private Integer goodsid;

    //商品名字
    private String goodsname;

    //商品价格
    private Double goodsprice;

    //商品标题
    private String goodstitle;

    private Integer goodsnum;

    private Double subtotal;

    private Integer cartid;

    //商品图片ID
    private Integer pictureid;

    //商品图片路径
    private String pictureurl;

    public Integer getCartitemid() {
        return cartitemid;
    }

    public void setCartitemid(Integer cartitemid) {
        this.cartitemid = cartitemid;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public Double getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(Double goodsprice) {
        this.goodsprice = goodsprice;
    }

    public String getGoodstitle() {
        return goodstitle;
    }

    public void setGoodstitle(String goodstitle) {
        this.goodstitle = goodstitle;
    }

    public Integer getGoodsnum() {
        return goodsnum;
    }

    public void setGoodsnum(Integer goodsnum) {
        this.goodsnum = goodsnum;
    }

    public Double getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(Double subtotal) {
        this.subtotal = subtotal;
    }

    public Integer getCartid() {
        return cartid;
    }

    public void setCartid(Integer cartid) {
        this.cartid = cartid;
    }

    public Integer getPictureid() {
        return pictureid;
    }

    public void setPictureid(Integer pictureid) {
        this.pictureid = pictureid;
    }

    public String getPictureurl() {
        return pictureurl;
    }

    public void setPictureurl(String pictureurl) {
        this.pictureurl = pictureurl;
    }

    public Cartitem ( Integer cartitemid, Integer goodsid, Integer goodsnum, Integer cartid, Integer pictureid ) {
        this.cartitemid = cartitemid;
        this.goodsid = goodsid;
        this.goodsnum = goodsnum;
        this.cartid = cartid;
        this.pictureid = pictureid;
    }

    public Cartitem( Integer cartitemid, Integer goodsid, String goodsname, Double goodsprice, String goodstitle, Integer goodsnum, Double subtotal, Integer cartid, Integer pictureid, String pictureurl) {
        this.cartitemid = cartitemid;
        this.goodsid = goodsid;
        this.goodsname = goodsname;
        this.goodsprice = goodsprice;
        this.goodstitle = goodstitle;
        this.goodsnum = goodsnum;
        this.subtotal = subtotal;
        this.cartid = cartid;
        this.pictureid = pictureid;
        this.pictureurl = pictureurl;
    }

    public Cartitem() {
    }

    @Override
    public String toString() {
        return "Cartitem{" +
                "cartitemid=" + cartitemid +
                ", goodsid=" + goodsid +
                ", goodsname='" + goodsname + '\'' +
                ", goodsprice=" + goodsprice +
                ", goodstitle='" + goodstitle + '\'' +
                ", goodsnum=" + goodsnum +
                ", subtotal=" + subtotal +
                ", cartid=" + cartid +
                ", pictureid=" + pictureid +
                ", pictureurl='" + pictureurl + '\'' +
                '}';
    }


}